package cn.jiyun.feign;

import cn.jiyun.dao.paper.PaperDTO;
import cn.jiyun.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Author 王晨
 * Date 2023/8/25
 */
@FeignClient(value = "day09paper")
public interface PaperFeign {

    @RequestMapping("/paper/findPaper")
    public R findPaper();

    @RequestMapping("/paper/findTrainPaper")
    R findTrainPaper(@SpringQueryMap PaperDTO paperDTO);

    @RequestMapping("/paper/findStatus")
    R findStatus(@RequestParam("id") Integer id);

    @RequestMapping("/paper/findBijiao")
    R findBijiao(@RequestParam("id") Integer id);

    @RequestMapping("/paper/findPaperTest")
    R findPaperTest(@SpringQueryMap PaperDTO paperDTO);
}
